package com.ukao.pad.dialog;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.ukao.pad.R;
import com.ukao.pad.base.BaseDialogFragment;
import com.ukao.pad.utils.SystemUIUtils;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;

/**
 * 地址
 * Created by ukaodev on 2017/6/2.
 */

public class BindingDialogFragment extends BaseDialogFragment {

    Unbinder unbinder;
    @BindView(R.id.hide_txt)
    TextView hideTxt;
    private String hide;


    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        hide = getArguments().getString(ARG_PARAM1);

    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.dilaog_binding_succeed, container, false);
        unbinder = ButterKnife.bind(this, view);
        hideTxt.setText(hide);
        return view;
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        if (getDialog()!=null){
            SystemUIUtils.setStickFullScreen(getDialog().getWindow());
        }
    }


    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }

}
